GtkIconHelper: Convert to using cairo surfaces as base and support scales
authorAlexander Larsson <alexl@redhat.com>
Mon, 24 Jun 2013 12:13:43 +0000 (14:13 +0200)
committerAlexander Larsson <alexl@redhat.com>
Wed, 3 Jul 2013 12:39:26 +0000 (14:39 +0200)
commit031e1a98a0d26682572906b3a3853a284412aaf1
tree22ded67524447f7cf05aef0ead7164da4e7dd889
parent635ae9bd919a60d4241a9c5a546fc281a5e4d59f
GtkIconHelper: Convert to using cairo surfaces as base and support scales

We render the source into a cairo_surface_t so that we can render it
with cairo directly, rather than having to convert it from a pixbuf
every time. We also specify the target window when creating the cairo
surface so that rendering can be faster.

Using cairo surfaces also allows us to seamlessly support window scales.

We also add a GTK_IMAGE_SURFACE source type.
gtk/gtkiconhelper.c
gtk/gtkiconhelperprivate.h
gtk/gtkimage.h